package com.dxysun.app;

import com.dxysun.dubbo.api.HelloService;

import java.util.ServiceLoader;

/**
 * @author dongxiyan
 * @date 2020/2/29 15:08
 */
public class Main
{
	public static void main(String[] args) throws Exception {
		System.out.println("Hello World!");
		ServiceLoader<HelloService> serviceLoader = ServiceLoader.load(HelloService.class);
		for (HelloService helloService : serviceLoader)
		{
			System.out.println(helloService.sayHello("test"));
		}
	}
}
